<%@ page language="java" %>

<%@ page import="com.scalar.chiptrack.users.User,
                com.scalar.chiptrack.users.UserGroup,
                com.scalar.chiptrack.commons.SessionKeys,
                com.scalar.chiptrack.utils.ConfigManager"%>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<chiptrack:checkLogon sourcePage="/jsp/operations/operations.jsp"/>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<HTML><HEAD><TITLE>Scalar Soft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>

<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY bgColor='#ffffff' leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
<script language="JavaScript">

	function submitPage()
    {
        var pa = document.getElementById("errors");
		if(document.lotTrace.lotNumber.value != '')
        {
			document.lotTrace.submit();
		}
        else
        {
            pa.innerHTML = "<li> Please enter the Lot Number";
        }
	}

</script>
<!-- Top Header Start-->
<%@ include file="/jsp/includes/header.jsp" %>
<!-- Top Header End-->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
	<TD width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

<!-- Side Navigation start -->
<%@ include file="/jsp/operations/operations_menu.jsp" %></TD>
<!-- end of the side navigations -->

<TD bgcolor="#ffffff">
<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="100%">

<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
<BR>

<!-- from here your body starts -->
<html:form  name="lotTrace"  type="com.scalar.chiptrack.operations.process.forms.LotTraceForm" action="/lotTrace.do">
<center><span class="NArialW">Lot Tracing</span></center>
<img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20>

<table border="0" width="100%" align=right>
    <%--<tr><td colspan=2><img src="<%=chipTracContext%>/jsp/includes/images/spacer/gif" height=20></td></tr>--%>
    <tr><td colspan=2 class="NArialL"><chiptrack:errors styleClass="NArialL"  /></td></tr>
    <tr><td colspan=2 class="NArialL"><font color = 'red' id = 'errors'></font></td></tr>

    <tr>
      <td width = "5%" >&nbsp;</td>
      <td width = "25%" ><font class="NArialL">Lot Number &nbsp;&nbsp;&nbsp;</font><input type="text" name="lotNumber" size="20" class="txfield" value=""></td>
    </tr>

    <TR>
          <td width = "5%">&nbsp;</td>
          <td width = "25%">&nbsp;</td>
    </TR>

    <tr>
        <td width = "5%" >&nbsp;</td>

        <td width = "25%" >
            <font class="NArialL">Group By</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="radio" name="lotType" value="vendorLot" checked>
    	        <font class="NArialL">Vendor Lot</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="radio" name="lotType" value="fabLot">
    	        <font class="NArialL">Fab Lot</font>
       </td>
    </tr>

    <tr><td colspan=5><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20></td></tr>
	<tr>
      <td colspan=5 align=center>
      <a href="javascript:submitPage()"><img border="0" src="<%=chipTracContext%>/jsp/includes/images/submit.gif" width="53" height="17"  onmouseover="window.status='Click to View Lot Tracing';return true" onmouseout="window.status='';return true" title="Click here to View the Lot Tracing"></a>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <a href="javascript:document.lotTrace.reset();">
     <img src="<%=chipTracContext%>/jsp/includes/images/reset.gif" border='0' onmouseover="window.status='Click to Reset';return true" onmouseout="window.status='';return true" title="Click here to Reset"></a>
     </td>
    </tr>

  </table>

<!-- till here -->
<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
</TR>
</TABLE>
</html:form>
<!-- Footer starts here -->
<%@ include file="/jsp/includes/footer.jsp" %>
<!-- footer end here -->

</BODY>
</HTML>